package chapter04;

/**
 * 判断手机号码的有效性
 * Created by a on 2017/6/9.
 */
public class Test079 {
    public static void main(String[] args) {
        String text = "13857389523";
        String regex = "^13\\d{9}|";
        if (text.matches(regex)){
            System.out.println("验证通过");
        }else {
            System.out.println("非法的手机号码格式");
        }
    }
}
